import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import 'ant-design-vue/dist/antd.css';
import Antd from 'ant-design-vue'


import VueMarkdownEditor from '@kangc/v-md-editor';

import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';

import Prism from 'prismjs';

import createCopyCodePlugin from '@kangc/v-md-editor/lib/plugins/copy-code/index';
import '@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css';

import VueWechatTitle from 'vue-wechat-title'//动态修改title

import VueLazyLoad from 'vue3-lazy' // 引入插件

// main.js 中全局引入 注意 Vue.use要在new Vue实例之前
// import falls from 'vue-falls'



VueMarkdownEditor.use(vuepressTheme, {
    Prism,
});
VueMarkdownEditor.use(createCopyCodePlugin());

// Vue.use(Antd);

// Vue.config.productionTip = false;

createApp(App).use(VueLazyLoad,
    {
        loading: require('@/assets/logo.png'), // 图片加载时默认图片
    error: require('@/assets/logo.png')// 图片加载失败时默认图片
    }).use(store).use(router).use(Antd).use(VueMarkdownEditor).use(VueWechatTitle).mount("#app");





